package com.feign.servicefeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @FeignClient : 标明自已为服务消费者，see-param 服务生产者项目名
 * fallback 指定熔断方法类为：SeeParamError ( 此类要实现本接口：SeeParamService )
 * @Auther: silence
 * @Date: 2019/7/23 20:09
 */
@FeignClient(value = "see-param",fallback = SeeParamError.class)
public interface SeeParamService {

    @RequestMapping(value = "/seeParam", method = RequestMethod.GET)
    String seeParam(@RequestParam(value = "param") String param);

}
